Skip to content

[CS2113-T12-3] Student Exchange Programme Helper#22

Open
L0Z1K wants to merge 603 commits into
nus-cs2113-AY2223S2:masterfrom
AY2223S2-CS2113-T12-3:master
Open

[CS2113-T12-3] Student Exchange Programme Helper#22
L0Z1K wants to merge 603 commits into
nus-cs2113-AY2223S2:masterfrom
AY2223S2-CS2113-T12-3:master

Conversation

@L0Z1K

@L0Z1K L0Z1K commented Mar 2, 2023

Copy link
Copy Markdown

Preparing NUS Mech Eng students to embark on a SEP, as journeying into a foreign country is overwhelming. Our solution will be a quick way to let them know which modules can be mapped to their desired university and the better flight and accommodation options that are within their budget.

Comment thread docs/DeveloperGuide.md
Sequence Diagram of Storage initialisation:

![Storage.png](diagrams%2FStorage%2FStorage.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image looks blur on the website

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree

Comment thread docs/DeveloperGuide.md
# Architecture

![Architecture.png](diagrams%2FArchitecture.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Architecture is clear and easy to understand.

Comment thread docs/DeveloperGuide.md
The following sequence diagram shows the relationship between the classes involved when the delete command is called.

![HelpCommandSequenceDiagram.png](diagrams%2FHelpCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Activation bar of :HelpCommandModule appears to be cut off from the top and bottom

@Jeraldchen Jeraldchen left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall DG is clear and well done. Just some minor errors to look into as shown in comments

@wanjuin wanjuin left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

goos use of sequence diagram (UML) in the DG overall.

@BenjaminPoh BenjaminPoh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall good job, explanations were clear and diagrams were easy to understand!

Comment thread docs/DeveloperGuide.md Outdated
2. Parser : Processes and Executes User Commands
3. UI : Prints out messages to user
4. Storage : Processes and stores
5. DataReader

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a missing whitespace here? (Diagram says "Data Reader")

Comment thread docs/DeveloperGuide.md

The following class diagrams illustrates the relationship between the Parser class and the Command classes.
- (TODO: finish up the rest of the command cases)
![ParserSequenceDiagram.png](diagrams%2FParserSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The UML Diagram is very large, and many of the command classes are still incomplete. Maybe try to break it up into different diagrams or use reference frames

  2. There is also a case of 4-level self-invocation. Maybe can also make use of reference frames for this?

Comment thread docs/DeveloperGuide.md Outdated

The following sequence diagram shows the relationship between the classes involved when the delete command is called.

![DeleteModuleCommandSequenceDiagram.png](diagrams%2FDeleteModuleCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For return values, I think it is sufficient to write "true" instead of "return true", as it should already be clear it is a return value by the dotted arrow.

Comment thread docs/DeveloperGuide.md Outdated

Sequence Diagram of List Current Command.

![ListCurrentCommandSequenceDiagram.png](diagrams%2FListCurrentCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why the dotted arrow at the end of ui:UI goes leftwards instead of right like other arrows?

Comment thread docs/DeveloperGuide.md Outdated
## Acknowledgements

{list here sources of all reused/adapted ideas, code, documentation, and third-party libraries -- include links to the original source as well}
{list here sources of all reused/adapted ideas, code, documentation, and third-party libraries -- include links to the

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing information?

Comment thread docs/DeveloperGuide.md Outdated
DataReader class reads two external .txt files to acquire the list of Partner Universities and list
of Modules available in the PUs, and provides this information to other components.

{Describe the design and implementation of the product. Use UML diagrams and short code snippets where applicable.}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the uml diagram is missing

Comment thread docs/DeveloperGuide.md
Sequence Diagram of Storage initialisation:

![Storage.png](diagrams%2FStorage%2FStorage.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree

Comment thread docs/DeveloperGuide.md Outdated

Sequence Diagram of List Current Command.

![ListCurrentCommandSequenceDiagram.png](diagrams%2FListCurrentCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

arrow is on the wrong side

Comment thread docs/DeveloperGuide.md Outdated
> Syntax: list current [_uniAbbreviation_]

Sequence Diagram of List Current Pu Command
![ListCurrentPuCommandSequenceDiagram.png](diagrams%2FListCurrentPuCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

missing activation bars

Comment thread docs/DeveloperGuide.md Outdated

The following sequence diagram shows the relationship between the classes involved when the delete command is called.

![DeleteModuleCommandSequenceDiagram.png](diagrams%2FDeleteModuleCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

activation bar should end when the method ends

Comment thread docs/DeveloperGuide.md Outdated
The help command provides a list of commands and the commands' respective input format for the user.
> Syntax: /help

The following sequence diagram shows the relationship between the classes involved when the delete command is called.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo here regarding the delete command

Comment thread docs/DeveloperGuide.md Outdated

The following sequence diagram shows the relationship between the classes involved when the delete command is called.

![HelpCommandSequenceDiagram.png](diagrams%2FHelpCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method call printHelpCommandMessage() from :HelpModuleCommand should be at the start of the activation bar.

Comment thread docs/DeveloperGuide.md Outdated
**Note: Partner Universities Abbreviations can be found using List Pu command**

Sequence Diagram of List Pu Modules Command.
![ListPuModulesCommandSequenceDiagram.png](diagrams%2FListPuModulesCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice diagram! But the final return from the static UI class should be at the end of the activation bar

Comment thread docs/DeveloperGuide.md Outdated

Sequence Diagram of List Current Command.

![ListCurrentCommandSequenceDiagram.png](diagrams%2FListCurrentCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! It would be better if the self-invoked method had an return arrow on the same side of the activation bar going back into the bar.

Comment thread docs/DeveloperGuide.md Outdated

Sequence Diagram of Storage initialisation:

![Storage.png](diagrams%2FStorage%2FStorage.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to add figure numbers to your diagrams too!

@itszhixuan itszhixuan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally well done, except for some small mistakes.

Comment thread docs/DeveloperGuide.md Outdated
Comment on lines +92 to +94
Sequence Diagram of Storage initialisation:

![Storage.png](diagrams%2FStorage%2FStorage.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sequence diagram looks blur, but it seems like the return values are not indicated with a dotted line.

Comment thread docs/DeveloperGuide.md Outdated
Comment on lines +106 to +109
The commands that the parser class will initialise are ListPuCommand(), ListCurrentCommand(modules),
prepareListPuModulesCommand(userCommandSecondKeyword, universities), ExitCommand(),
prepareAddModuleCommand(storage, userCommandSecondKeyword, puModules, universities),
DeleteModuleCommand(storage, indexToRemove, modules), and HelpCommand(). The parser class will handle error checking by

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps you can consider reformatting this to make it easier to read, as all the commands are lumped together and messy.

Comment thread docs/DeveloperGuide.md

The following class diagrams illustrates the relationship between the Parser class and the Command classes.
- (TODO: finish up the rest of the command cases)
![ParserSequenceDiagram.png](diagrams%2FParserSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The third alt case does not state the condition explicitly, which makes it unclear on when this is called.

Comment thread docs/DeveloperGuide.md Outdated

### Add Module Command

Adds the Module the user has wants to save to the saved modules database.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line correct? I am still able to understand but seems like there is some typo.

Comment thread docs/DeveloperGuide.md Outdated
> Syntax: list current [_uniAbbreviation_]

Sequence Diagram of List Current Pu Command
![ListCurrentPuCommandSequenceDiagram.png](diagrams%2FListCurrentPuCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another small typo in the image "UserConcole"

Comment thread docs/DeveloperGuide.md Outdated
**Note: Partner Universities Abbreviations can be found using List Pu command**

Sequence Diagram of List Pu Modules Command.
![ListPuModulesCommandSequenceDiagram.png](diagrams%2FListPuModulesCommandSequenceDiagram.png)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like your UML diagram is a bit big and filled with a lot of words. Maybe you could try to make it more concise by making it small and precise.

briantjs00 and others added 20 commits April 6, 2023 00:51
…into Branch-DeadlineStorage-Singleton

# Conflicts:
#	src/main/java/seedu/duke/Duke.java
#	src/test/java/seedu/duke/ParserTest.java
#	src/test/java/seedu/duke/command/DeleteModuleCommandTest.java
#	src/test/java/seedu/duke/command/ExitCommandTest.java
#	src/test/java/seedu/duke/command/HelpCommandTest.java
#	src/test/java/seedu/duke/command/InvalidCommandTest.java
Change DeadlineStorage classs into singleton pattern
…into branch-Parser-Singleton

# Conflicts:
#	src/test/java/seedu/duke/command/DeleteModuleCommandTest.java
#	src/test/java/seedu/duke/command/ExitCommandTest.java
#	src/test/java/seedu/duke/command/HelpCommandTest.java
#	src/test/java/seedu/duke/command/InvalidCommandTest.java
Change Parser class into singleton pattern
SSzeWen and others added 30 commits April 10, 2023 21:02
Update DG Deadline and Budget test details
Update Developer Guide Budget Commands
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.